package cn.selfiot.iotman.model;

/**
 * @author hugo
 * @since 2020/8/7
 */
public final class MqttProjectConstants {
    public final static Option[] QOS = new Option[]{
            new Option("0", 0),
            new Option("1", 1),
            new Option("2", 2)
    };
    public final static Option[] MQTT_VER = new Option[]{
            new Option("v.3.1", "v.3.1"),
            new Option("v.3.1.1", "v.3.1.1")
    };
    public final static Option[] SSL_VER = new Option[]{
            new Option("TLS v1.1", "TLS v1.1"),
            new Option("TLS v1.2", "TLS v1.2"),
            new Option("TLS v1.3", "TLS v1.3")
    };
    
    
    public static class Option {
        private String label;
        private Object value;
        
        public Option(String label, Object value) {
            this.label = label;
            this.value = value;
        }
        
        public String getLabel() {
            return label;
        }
        
        public void setLabel(String label) {
            this.label = label;
        }
        
        public Object getValue() {
            return value;
        }
        
        public void setValue(Object value) {
            this.value = value;
        }
    }
}
